/**
 * 
 */
package com.neal.service.impl;

import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Service;
import com.neal.service.IAsyncService;


/**
 * @author Neal
 * @version 1.0
 * @description 
 */
@Service
public class AsyncServiceBean implements IAsyncService {

	/* (non-Javadoc)
	 * @see com.neal.service.ISyncService#sleep()
	 */
	@Override
	@Async
	public void sleep() {
		try {
			System.out.println("sleep 5s");
			Thread.sleep(5000);
		}
		catch (InterruptedException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}

}
